#define _CRT_SECURE_NO_WARNINGS 1

#include"Heap.h"

void HeapTest1()
{
	int arr[] = { 1,5,6,7,8,4,2,9,3,10 };
	HP hp;
	HP* php = &hp;
	HPInit(&hp);

	int i = 0;
	for (i = 0; i < sizeof(arr) / sizeof(int); i++)
	{
		HPPush(&hp, arr[i]);
	}

	/*for (i = 0; i < php->size; i++)
	{
		printf("%d ", php->arr[i]);
	}
	printf("\n");*/

	for (i = 0; i < sizeof(arr) / sizeof(int); i++)
	{
		printf("%d ", HPTop(php));
		HPPop(php);
	}
	printf("\n");

}

int main()
{
	HeapTest1();
	return 0;
}